import Vue from 'vue'
import Router from 'vue-router'
import Layout from '@/components/Layout.vue'
import Home from './components/AppNavbar/home.vue'
import Goods from './components/AppNavbar/goods.vue'
import Order from './components/AppNavbar/order.vue'
import Finance from './components/AppNavbar/finance.vue'
import Operation from './components/AppNavbar/operation.vue'
import Settings from './components/AppNavbar/settings.vue'
import Statistics from './components/AppNavbar/statistics.vue'
import Stock from './components/AppNavbar/stock.vue'
import User from './components/AppNavbar/user.vue'
// 系统首页
import AccountS from './views/Finance/AccountS'
import ConLog from './views/Finance/ConLog'
import SystemHome from './views/Finance/SystemHome'
import Systeml from './views/Finance/SystemI'
//商品
import AddGoods from './views/Goods/AddGoods'
import GoodsList from './views/Goods/GoodsList'
import GoodsDetails from './views/Goods/GoodsList/Details'
import GoodsModify from './views/Goods/GoodsList/Modify'
import GoodsListRedact from './views/Goods/GoodsList/GoodsListRedact'
import GoodListLog from './views/Goods/GoodsList/log/log.vue'

import GoodsImage from './views/Goods/GoodsImage'
import CreateImage from './views/Goods/GoodsImage/CreateImage'
import GoodsImageList from './views/Goods/GoodsImage/GoodImageList'
import GoodsAudit from './views/Goods/GoodsAudit'
import GoodsBrand from './views/Goods/GoodsBrand'
import GoodsClassify from './views/Goods/GoodsClassify'
import ClassifyForm from './views/Goods/GoodsClassify/ClassifyForm'
import ClassFormTwo from './views/Goods/GoodsClassify/ClassFormTwo'
import ClassFormUpdate from './views/Goods/GoodsClassify/ClassFormUpdate'
import TwoClassify from './views/Goods/GoodsClassify/TwoClassify'
import ThreeClassify from './views/Goods/GoodsClassify/ThreeClassify'
import GoodsEvaluation from './views/Goods/GoodsEvaluation'
import EvaluationDetails from './views/Goods/GoodsEvaluation/EvaluationDetails'
import GoodsRecycle from './views/Goods/GoodsRecycle'

import GoodsSP from './views/Goods/GoodsSP'
import FormatList from './views/Goods/GoodsSP/format/formatList'
import ParamList from './views/Goods/GoodsSP/param/paramList'
import AddOrUpdateFormat from './views/Goods/GoodsSP/format/addOrUpdate'
import AddOrUpdateParmar from './views/Goods/GoodsSP/param/addOrUpdate'
//库存
import CommodityWarehousing from './views/Stock/CommodityWarehousing'
import OutboundGood from './views/Stock/OutboundGood'
//运营
import SecondsKillActivity from './views/Operation/SecondsKillActivity'
import SetGood from './views/Operation/SecondsKillActivity/setGood/setGood.vue'
import SecondsKillGoodList from './views/Operation/SecondsKillActivity/goodList/secondsKillGoodList.vue'

import PeriodTime from './views/Operation/PeriodTime'
import WithReducedActivity from './views/Operation/WithReducedActivity'
import AddWithReducedActivity from './views/Operation/AddWithReducedActivity'
import UpdateWithReducedActivity from './views/Operation/AddWithReducedActivity'

import Coupon from './views/Operation/Coupon'
import AddCoupon from './views/Operation/AddCoupon'
import RedactCoupon from './views/Operation/Coupon/RedactCoupon'
import UpdateCoupon from './views/Operation/AddCoupon'
import SelectCoupon from './views/Operation/SelectCoupon'
import CouponDetails from './views/Operation/SelectCoupon/CouponDetails/CouponDetails.vue'

import Activity from './views/Operation/Activity'
import ActivitySelet from './views/Operation/Activity/ActivitySelet'
import ActivityRedact from './views/Operation/Activity/ActivityRedact'
import AddActivity from './views/Operation/AddActivity'
import Advertising from './views/Operation/Advertising'
import AddAdvertising from './views/Operation/AddAdvertising'
import AdvertisRedact from './views/Operation/Advertising/AdvertisRedact'
// 订单列表
import OrderList from './views/Order/OrderList/index.vue'
import OrderBulkShipment from './views/Order/OrderList/OrderBulkShipment'
import OrderTracking from './views/Order/OrderList/OrderTracking'
import OrderPrint from './views/Order/OrderList/OrderPrint'
import LookOrderNoPay from './views/Order/OrderList/lookOrder/lookOrderNoPay.vue'
import UpdateGoodMessage from './views/Order/OrderList/lookOrder/updateGoodMessage.vue'
// 订单确认
import OrderConfirm from './views/Order/OrderConfirm'
import LookOrder from './views/Order/OrderWarn/lookOrder/lookOrder.vue'
import OrderTrack from './views/Order/OrderWarn/lookOrder/orderTrack'
// 到货提醒
import OrderWarn from './views/Order/OrderWarn'
// 订单设置
import OrderSetting from './views/Order/OrderSetting'
// 退货处理
import GoodReturn from './views/Order/GoodReturn'
import GoodsReturnBill from './views/Order/GoodReturn/GoodsReturnBill'
// 退款处理
import DrawBack from './views/Order/DrawBack'
import DrawBackForm from './views/Order/DrawBack/DrawBackForm'
// 退换原因设置
import ReturnSetting from './views/Order/ReturnSetting'

// 用户
import UserList from './views/User/UserList'
import UserListCheck from './views/User/UserList/UserListCheck'
import MemberSetting from './views/User/MemberSetting'
import AddMemberSetting from './views/User/MemberSetting/AddMemberSetting'
import UpdateMember from './views/User/MemberSetting/UpdateMember'
import GrowUp from './views/User/GrowUp'
import GrowUpInfo from './views/User/GrowUp/GrowUpInfo'
import TackSetting from './views/User/TackSetting'

//设置
import PlatformInfo from './views/Settings/PlatformSet/PlatformInfo'
import BaseSet from './views/Settings/PlatformSet/BaseSet'
import CodeSet from './views/Settings/PlatformSet/CodeSet'
import Message from './views/Settings/PlatformSet/Message'
import AddMessage from './views/Settings/PlatformSet/Message/AddMessage'

import AreaManage from './views/Settings/PayDelivery/AreaManage'
import FreightTemp from './views/Settings/PayDelivery/FreightTemp'
import AddTemp from './views/Settings/PayDelivery/FreightTemp/AddTemp'
import LogisticsCompany from './views/Settings/PayDelivery/LogisticsCompany'
import PaySet from './views/Settings/PayDelivery/PaySet'
import PaySetRedact from './views/Settings/PayDelivery/PaySet/PaySetRedact'

import LperatingLog from './views/Settings/AuthorityManage/LperatingLog'
import MemberManage from './views/Settings/AuthorityManage/MemberManage'
import MemberAdd from './views/Settings/AuthorityManage/MemberManage/MemberAdd'
import RoleManage from './views/Settings/AuthorityManage/RoleManage'
import RoleManageSetting from './views/Settings/AuthorityManage/RoleManage/RoleManageSetting'
import SQLManage from './views/Settings/AuthorityManage/SQLManage'

//统计
import Business from './views/Statistics/Business'
import Flow from './views/Statistics/Flow'
import GoodsStat from './views/Statistics/GoodsStat'
import Search from './views/Statistics/Search'
import VIP from './views/Statistics/VIP'
//综合统计
import ComplexStatistic from './views/Finance/ComplexStatistic'
import LookGoodList from './views/Finance/ComplexStatistic/lookGoodList/lookGoodList.vue'
import LookOrderList from './views/Finance/ComplexStatistic/lookOrderList/lookOrderList.vue'
//销售统计
import SalesStatistic from './views/Finance/SalesStatistic'
//对账列表
import ReconciliationList from './views/Finance/ReconciliationList'
//对账详情单
import ReconciliationInfo from './views/Finance/ReconciliationList/ReconciliationInfo'

Vue.use(Router)

export default new Router({
	mode: 'history',
	routes: [
		// {
		//   path: "/",
		//   name: "home",
		//   component: Home
		// },
		{
			// 基础布局
			path: '/',
			name: 'layout',
			component: Layout,
			children: [
				{
					path: 'navbarHome',
					// component: Home,
					// name:'home',
					// meta: {
					//   title: '首页'
					// }
					components: {
						home: Home,
					},
				},
			],
		},
		// {
		//   path: '/goods',
		//   name: 'goods',
		//   component: Goods
		// },
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: '/',
					components: {
						goods: Goods,
					},
					meta: { title: '商品' },
				},
			],
		},

		{
			path: '/order',
			component: Layout,
			children: [
				{
					path: '/',
					components: {
						order: Order,
					},
					meta: { title: '订单' },
				},
			],
		},
		{
			path: '/stock',
			component: Layout,
			children: [
				{
					path: '/',
					components: {
						stock: Stock,
					},
					meta: { title: '库存' },
				},
			],
		},
		{
			path: '/user',
			component: Layout,
			children: [
				{
					path: '/',
					components: {
						user: User,
					},
					meta: { title: '用户' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: '/',
					components: {
						operation: Operation,
					},
					meta: { title: '运营' },
				},
			],
		},
		{
			path: '/statistics',
			component: Layout,
			children: [
				{
					path: '/',
					components: {
						statistics: Statistics,
					},
					meta: { title: '统计' },
				},
			],
		},
		{
			path: '/statistics',
			component: Layout,
			children: [
				{
					path: 'business',
					components: {
						business: Business,
						statistics: Statistics,
					},
					meta: { title: '交易统计' },
				},
			],
		},
		{
			path: '/statistics',
			component: Layout,
			children: [
				{
					path: 'flow',
					components: {
						flow: Flow,
						statistics: Statistics,
					},
					meta: { title: '流量统计' },
				},
			],
		},
		{
			path: '/statistics',
			component: Layout,
			children: [
				{
					path: 'goodsStat',
					components: {
						goodsStat: GoodsStat,
						statistics: Statistics,
					},
					meta: { title: '商品统计' },
				},
			],
		},
		{
			path: '/statistics',
			component: Layout,
			children: [
				{
					path: 'search',
					components: {
						search: Search,
						statistics: Statistics,
					},
					meta: { title: '搜索统计' },
				},
			],
		},
		{
			path: '/statistics',
			component: Layout,
			children: [
				{
					path: 'vIP',
					components: {
						vIP: VIP,
						statistics: Statistics,
					},
					meta: { title: '会员统计' },
				},
			],
		},
		{
			path: '/finance',
			component: Layout,
			children: [
				{
					path: '/',
					components: {
						finance: Finance,
					},
					meta: { title: '财务' },
				},
			],
		},
		{
			path: '/finance',
			component: Layout,
			children: [
				{
					path: 'salesStatistic',
					components: {
						salesStatistic: SalesStatistic,
						finance: Finance,
					},
					meta: { title: '销售统计' },
				},
			],
		},
		{
			path: '/finance',
			component: Layout,
			children: [
				{
					path: 'complexStatistic',
					components: {
						complexStatistic: ComplexStatistic,
						finance: Finance,
					},
					meta: { title: '综合统计' },
				},
			],
		},
		{
			path: '/finance',
			component: Layout,
			children: [
				{
					path: 'reconciliationList',
					components: {
						reconciliationList: ReconciliationList,
						finance: Finance,
					},
					meta: { title: '对账列表' },
				},
			],
		},
		{
			path: '/finance',
			component: Layout,
			children: [
				{
					path: 'reconciliationInfo',
					components: {
						reconciliationInfo: ReconciliationInfo,
						finance: Finance,
					},
					meta: { title: '对账单详情' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: '/',
					components: {
						settings: Settings,
					},
					meta: { title: '设置' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: 'platformInfo',
					components: {
						platformInfo: PlatformInfo,
						settings: Settings,
					},
					meta: { title: '平台信息' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: 'message',
					components: {
						message: Message,
						settings: Settings,
					},
					meta: { title: '消息提醒' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: 'addMessage',
					components: {
						addMessage: AddMessage,
						settings: Settings,
					},
					meta: { title: '消息模板编辑' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: 'codeSet',
					components: {
						codeSet: CodeSet,
						settings: Settings,
					},
					meta: { title: '验证码设置' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: 'baseSet',
					components: {
						baseSet: BaseSet,
						settings: Settings,
					},
					meta: { title: '基本设置' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: 'areaManage',
					components: {
						areaManage: AreaManage,
						settings: Settings,
					},
					meta: { title: '区域管理' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					name: 'templateInfo',
					path: 'addTemp',
					components: {
						addTemp: AddTemp,
						settings: Settings,
					},
					meta: { title: '运费模版' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: 'freightTemp',
					components: {
						freightTemp: FreightTemp,
						settings: Settings,
					},
					meta: { title: '添加模版' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: 'logisticsCompany',
					components: {
						logisticsCompany: LogisticsCompany,
						settings: Settings,
					},
					meta: { title: '物流公司' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: 'paySet',
					components: {
						paySet: PaySet,
						settings: Settings,
					},
					meta: { title: '支付设置' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: 'paySetRedact',
					components: {
						paySetRedact: PaySetRedact,
						settings: Settings,
					},
					meta: { title: '编辑支付方式' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: 'lperatingLog',
					components: {
						lperatingLog: LperatingLog,
						settings: Settings,
					},
					meta: { title: '操作日志' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: 'memberManage',
					components: {
						memberManage: MemberManage,
						settings: Settings,
					},
					meta: { title: '成员管理' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: 'memberAdd',
					components: {
						memberAdd: MemberAdd,
						settings: Settings,
					},
					meta: { title: '成员添加' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: 'roleManage',
					components: {
						roleManage: RoleManage,
						settings: Settings,
					},
					meta: { title: '角色管理' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: 'roleManageSetting',
					components: {
						roleManageSetting: RoleManageSetting,
						settings: Settings,
					},
					meta: { title: '权限设置' },
				},
			],
		},
		{
			path: '/settings',
			component: Layout,
			children: [
				{
					path: 'sQLManage',
					components: {
						sQLManage: SQLManage,
						settings: Settings,
					},
					meta: { title: '数据库管理' },
				},
			],
		},
		{
			path: '/home',
			component: Layout,
			children: [
				{
					path: 'accountS',
					components: {
						accountS: AccountS,
						home: Home,
					},
					meta: { title: '账户设置' },
				},
			],
		},
		{
			path: '/home',
			component: Layout,
			children: [
				{
					path: 'conlog',
					components: {
						conlog: ConLog,
						home: Home,
					},
					meta: { title: '登录日志' },
				},
			],
		},
		{
			path: '/home',
			component: Layout,
			children: [
				{
					path: 'system',
					components: {
						system: SystemHome,
						home: Home,
					},
					meta: { title: '系统首页' },
				},
			],
		},
		{
			path: '/home',
			component: Layout,
			children: [
				{
					path: 'systemI',
					components: {
						systemI: Systeml,
						home: Home,
					},
					meta: { title: '系统信息' },
				},
			],
		},
		// 商品
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'addGoods',
					components: {
						addGoods: AddGoods,
						goods: Goods,
					},
					meta: { title: '添加商品' },
					// children: [
					//   {
					//     path: 'classify',
					//     component: Gclassify,
					//     meta: { title: '选择商品分类' }
					//   },
					//   {
					//     path: 'attribute',
					//     component: GoodsAttribute,
					//     meta: { title: "填写商品属性" }
					//   },
					//   {
					//     path: "message",
					//     component: GoodsMessage,
					//     meta: { title: "填写商品信息" }
					//   }
					// ]
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'goodsList',
					components: {
						goodsList: GoodsList,
						goods: Goods,
					},
					meta: { title: '商品列表' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'details',
					components: {
						goodsDetails: GoodsDetails,
						goods: Goods,
					},
					meta: { title: '商品信息页面' },
				},
			],
        },
        {
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'modify',
					components: {
						goodsModify: GoodsModify,
						goods: Goods,
					},
					meta: { title: '商品编辑页面' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'goodsListRedact',
					components: {
						goodsListRedact: GoodsListRedact,
						goods: Goods,
					},
					meta: { title: '商品列表编辑页面' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'log',
					components: {
						goodListLog: GoodListLog,
						goods: Goods,
					},
					meta: { title: '商品列表' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'goodsImage',
					components: {
						goodsImage: GoodsImage,
						goods: Goods,
					},
					meta: { title: '商品图片' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'createImage',
					components: {
						createImage: CreateImage,
						goods: Goods,
					},
					meta: { title: '新建相册' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'goodsImageList',
					components: {
						goodsImageList: GoodsImageList,
						goods: Goods,
					},
					meta: { title: '相册列表' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'goodsClassify',
					components: {
						goodsClassify: GoodsClassify,
						goods: Goods,
					},
					meta: { title: '商品分类' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'classifyForm',
					components: {
						classifyForm: ClassifyForm,
						goods: Goods,
					},
					meta: { title: '分类' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'ClassFormTwo',
					components: {
						classFormTwo: ClassFormTwo,
						goods: Goods,
					},
					meta: { title: '添加分类' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'ClassFormUpdate',
					components: {
						classFormUpdate: ClassFormUpdate,
						goods: Goods,
					},
					meta: { title: '编辑分类' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'addOrUpdateFormat',
					name: 'addOrUpdateFormat',
					components: {
						addOrUpdateFormat: AddOrUpdateFormat,
						goods: Goods,
					},
					meta: { title: '添加/修改规格' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'twoClassify',
					components: {
						twoClassify: TwoClassify,
						goods: Goods,
					},
					meta: { title: '二级分类' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'threeClassify',
					components: {
						threeClassify: ThreeClassify,
						goods: Goods,
					},
					meta: { title: '三级分类' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'goodsSP',
					components: {
						goodsSP: GoodsSP,
						goods: Goods,
					},
					meta: { title: '规格参数' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'formatList',
					components: {
						formatList: FormatList,
						goods: Goods,
					},
					meta: { title: '规格列表' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'paramList',
					components: {
						paramList: ParamList,
						goods: Goods,
					},
					meta: { title: '参数列表' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'addOrUpdateParmar',
					name: 'addOrUpdateParmar',
					components: {
						addOrUpdateParmar: AddOrUpdateParmar,
						goods: Goods,
					},
					meta: { title: '添加/修改参数' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'goodsAudit',
					components: {
						goodsAudit: GoodsAudit,
						goods: Goods,
					},
					meta: { title: '商品审核' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'goodsBrand',
					components: {
						goodsBrand: GoodsBrand,
						goods: Goods,
					},
					meta: { title: '品牌管理' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'goodsEvaluation',
					components: {
						goodsEvaluation: GoodsEvaluation,
						goods: Goods,
					},
					meta: { title: '商品评价' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'evaluationDetails',
					components: {
						evaluationDetails: EvaluationDetails,
						goods: Goods,
					},
					meta: { title: '评价详情' },
				},
			],
		},
		{
			path: '/goods',
			component: Layout,
			children: [
				{
					path: 'goodsRecycle',
					components: {
						goodsRecycle: GoodsRecycle,
						goods: Goods,
					},
					meta: { title: '商品回收站' },
				},
			],
		},
		{
			path: '/stock',
			component: Layout,
			children: [
				{
					path: 'commodityWarehousing',
					components: {
						commodityWarehousing: CommodityWarehousing,
						stock: Stock,
					},
					meta: { title: '商品入库' },
				},
			],
		},
		{
			path: '/stock',
			component: Layout,
			children: [
				{
					path: 'outboundGood',
					components: {
						outboundGood: OutboundGood,
						stock: Stock,
					},
					meta: { title: '商品出库' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'secondsKillActivity',
					components: {
						secondsKillActivity: SecondsKillActivity,
						operation: Operation,
					},
					meta: { title: '秒杀活动列表' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'setGood',
					components: {
						setGood: SetGood,
						operation: Operation,
					},
					meta: { title: '设置商品' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'secondsKillGoodList',
					components: {
						secondsKillGoodList: SecondsKillGoodList,
						operation: Operation,
					},
					meta: { title: '秒杀商品列表' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'periodTime',
					components: {
						periodTime: PeriodTime,
						operation: Operation,
					},
					meta: { title: '时间段列表' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'withReducedActivity',
					components: {
						withReducedActivity: WithReducedActivity,
						operation: Operation,
					},
					meta: { title: '满减活动列表' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'addWithReducedActivity',
					components: {
						addWithReducedActivity: AddWithReducedActivity,
						operation: Operation,
					},
					meta: { title: '添加满减活动列表' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: '/updateWithReducedActivity/:id',
					name: 'updateWithReducedActivity',
					components: {
						updateWithReducedActivity: UpdateWithReducedActivity,
						operation: Operation,
					},
					meta: { title: '修改满减活动列表' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'coupon',
					components: {
						coupon: Coupon,
						operation: Operation,
					},
					meta: { title: '优惠券列表' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'addCoupon',
					components: {
						addCoupon: AddCoupon,
						operation: Operation,
					},
					meta: { title: '添加优惠券' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'redactCoupon',
					components: {
						redactCoupon: RedactCoupon,
						operation: Operation,
					},
					meta: { title: '编辑优惠券' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'updateCoupon',
					components: {
						updateCoupon: UpdateCoupon,
						operation: Operation,
					},
					meta: { title: '修改优惠券' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'selectCoupon',
					components: {
						selectCoupon: SelectCoupon,
						operation: Operation,
					},
					meta: { title: '优惠券查询' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'couponDetails',
					components: {
						couponDetails: CouponDetails,
						operation: Operation,
					},
					meta: { title: '优惠券详情' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'activity',
					components: {
						activity: Activity,
						operation: Operation,
					},
					meta: { title: '活动列表' },
				},
			],
		},

		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'activitySelet',
					components: {
						activitySelet: ActivitySelet,
						operation: Operation,
					},
					meta: { title: '查看活动详情' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'activityRedact',
					components: {
						activityRedact: ActivityRedact,
						operation: Operation,
					},
					meta: { title: '编辑活动' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'addActivity',
					components: {
						addActivity: AddActivity,
						operation: Operation,
					},
					meta: { title: '添加活动' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'advertising',
					components: {
						advertising: Advertising,
						operation: Operation,
					},
					meta: { title: '广告列表' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'advertisRedact',
					components: {
						advertisRedact: AdvertisRedact,
						operation: Operation,
					},
					meta: { title: '编辑广告' },
				},
			],
		},
		{
			path: '/operation',
			component: Layout,
			children: [
				{
					path: 'addAdvertising',
					components: {
						addAdvertising: AddAdvertising,
						operation: Operation,
					},
					meta: { title: '添加广告' },
				},
			],
		},
		// 订单
		{
			path: '/order',
			component: Layout,
			children: [
				{
					path: 'orderList',
					components: {
						orderList: OrderList,
						order: Order,
					},
					meta: { title: '订单列表' },
				},
			],
		},
		{
			path: '/order',
			component: Layout,
			children: [
				{
					path: 'orderBulkShipment',
					components: {
						orderBulkShipment: OrderBulkShipment,
						order: Order,
					},
					meta: { title: '批量发货' },
				},
			],
		},
		{
			path: '/order',
			component: Layout,
			children: [
				{
					path: 'orderTracking',
					components: {
						orderTracking: OrderTracking,
						order: Order,
					},
					meta: { title: '订单跟踪' },
				},
			],
		},
		{
			path: '/order',
			component: Layout,
			children: [
				{
					path: 'orderPrint',
					components: {
						orderPrint: OrderPrint,
						order: Order,
					},
					meta: { title: '批量打印发货单' },
				},
			],
		},
		{
			path: '/order',
			component: Layout,
			children: [
				{
					path: 'orderConfirm',
					components: {
						orderConfirm: OrderConfirm,
						order: Order,
					},
					meta: { title: '订单确认' },
				},
			],
		},

		{
			path: '/order',
			component: Layout,
			children: [
				{
					path: 'lookOrderNoPay',
					components: {
						lookOrderNoPay: LookOrderNoPay,
						order: Order,
					},
					meta: { title: '订单详情', status: '未付款' },
				},
			],
		},
		{
			path: '/order/lookOrder',
			name: 'lookOrder',
			components: {
				lookOrder: LookOrder,
			},
			meta: { title: '订单详情' },
		},
		{
			path: '/lookOrderList',
			name: 'lookOrderList',
			components: {
				lookOrderList: LookOrderList,
			},
			meta: { title: '查看订单' },
		},
		{
			path: '/lookGoodList',
			name: 'lookGoodList',
			components: {
				lookGoodList: LookGoodList,
			},
			meta: { title: '查看商品' },
		},
		{
			path: '/order/orderTrack',
			name: 'orderTrack',
			components: {
				orderTrack: OrderTrack,
			},
			meta: { title: '订单追踪', status: '已签收' },
		},
		{
			path: '/order',
			component: Layout,
			children: [
				{
					path: 'updateGoodMessage',
					components: {
						updateGoodMessage: UpdateGoodMessage,
						order: Order,
					},
					meta: { title: '修改商品信息' },
				},
			],
		},
		{
			path: '/order',
			component: Layout,
			children: [
				{
					path: 'orderWarn',
					components: {
						orderWarn: OrderWarn,
						order: Order,
					},
					meta: { title: '到货提醒' },
				},
			],
		},
		{
			path: '/order',
			component: Layout,
			children: [
				{
					path: 'orderSetting',
					components: {
						orderSetting: OrderSetting,
						order: Order,
					},
					meta: { title: '订单设置' },
				},
			],
		},
		{
			path: '/order',
			component: Layout,
			children: [
				{
					path: 'goodReturn',
					components: {
						goodReturn: GoodReturn,
						order: Order,
					},
					meta: { title: '退货设置' },
				},
			],
		},
		{
			path: '/order',
			component: Layout,
			children: [
				{
					path: 'goodsReturnBill',
					components: {
						goodsReturnBill: GoodsReturnBill,
						order: Order,
					},
					meta: { title: '退货详情' },
				},
			],
		},
		{
			path: '/order',
			component: Layout,
			children: [
				{
					path: 'drawBack',
					components: {
						drawBack: DrawBack,
						order: Order,
					},
					meta: { title: '退款申请' },
				},
			],
		},
		{
			path: '/order',
			component: Layout,
			children: [
				{
					path: 'drawBackForm',
					components: {
						drawBackForm: DrawBackForm,
						order: Order,
					},
					meta: { title: '服务单详情' },
				},
			],
		},
		{
			path: '/order',
			component: Layout,
			children: [
				{
					path: 'returnSetting',
					components: {
						returnSetting: ReturnSetting,
						order: Order,
					},
					meta: { title: '退回原因设置' },
				},
			],
		},
		// 用户
		{
			path: '/user',
			component: Layout,
			children: [
				{
					path: 'userList',
					components: {
						userList: UserList,
						user: User,
					},
					meta: { title: '用户列表' },
				},
			],
		},
		{
			path: '/user',
			component: Layout,
			children: [
				{
					path: 'userListCheck',
					components: {
						userListCheck: UserListCheck,
						user: User,
					},
					meta: { title: '用户列表查看/编辑' },
				},
			],
		},
		{
			path: '/user',
			component: Layout,
			children: [
				{
					path: 'memberSetting',
					components: {
						memberSetting: MemberSetting,
						user: User,
					},
					meta: { title: '会员等级设置' },
				},
			],
		},
		{
			path: '/user',
			component: Layout,
			children: [
				{
					path: 'addMemberSetting',
					components: {
						addMemberSetting: AddMemberSetting,
						user: User,
					},
					meta: { title: '添加会员类型' },
				},
			],
		},
		{
			path: '/user',
			component: Layout,
			children: [
				{
					path: 'updateMember',
					components: {
						updateMember: UpdateMember,
						user: User,
					},
					meta: { title: '添加会员类型' },
				},
			],
		},
		{
			path: '/user',
			component: Layout,
			children: [
				{
					path: 'growUp',
					components: {
						growUp: GrowUp,
						user: User,
					},
					meta: { title: '成长值查询' },
				},
			],
		},
		{
			path: '/user',
			component: Layout,
			children: [
				{
					path: 'growUpInfo',
					components: {
						growUpInfo: GrowUpInfo,
						user: User,
					},
					meta: { title: '成长值明细' },
				},
			],
		},
		{
			path: '/user',
			component: Layout,
			children: [
				{
					path: 'tackSetting',
					components: {
						tackSetting: TackSetting,
						user: User,
					},
					meta: { title: '任务奖励设置' },
				},
			],
		},
	],
})
